package com.zhuoyue.system.domain.dto;

import com.zhuoyue.system.common.group.ValidationGroups;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * @author wjming
 */
@Data
public class AccountAuthorizeReqDTO {

    /**
     * 主键ID
     */
    @NotBlank(message = "id不能为空", groups = {ValidationGroups.Update.class})
    @Size(max = 40, groups = {ValidationGroups.Update.class})
    private String id;

    /**
     * 组织ID
     */
    @NotNull(message = "组织不能为空", groups = {ValidationGroups.Insert.class})
    private Long deptId;

    /**
     * 名称
     */
    @NotBlank(message = "名称不能为空", groups = {ValidationGroups.Insert.class})
    private String name;

    /**
     * 地址
     */
    private String address;

    /**
     * 负责人
     */
    private String personInCharge;

    /**
     * 负责人手机号
     */
    private String phone;

    /**
     * 账号
     */
    @NotBlank(message = "账号不能为空", groups = {ValidationGroups.Insert.class})
    private String account;

    /**
     * 密码
     */
    @NotBlank(message = "密码不能为空", groups = {ValidationGroups.Insert.class})
    private String password;

    /**
     * token信息
     */
    @NotBlank(message = "token信息不能为空", groups = {ValidationGroups.Insert.class})
    private String token;

    /**
     * token过期时间
     */
    @NotBlank(message = "token过期时间不能为空", groups = {ValidationGroups.Insert.class})
    private String tokenExpirationTime;

}
